<template>
	<div style="display: flex;justify-content: center;">
		<div id="qrcode" style="text-align: center;">
				  
		</div>
	</div>
</template>

<script>
	import QRCode from 'qrcode2'
	export default {
		data(){
			return {
				
			}
		},
		mounted() {
			console.log(QRCode)
			let qr_sn = this.$route.query.qr_sn
			console.log(qr_sn)
			let url = `${this.$baseUrl}/qrcode/?id=${qr_sn}`
			var qrcodeContainer = document.getElementById('qrcode');
			if (qrcodeContainer) {
				new QRCode(qrcodeContainer, url);
			} else {
				console.error('二维码容器未找到');
			}
		},
		methods:{
			
		}
	}
</script>

<style>
</style>